package InterfazTrabajador;

import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.ListSelectionModel;

public class VentanaTareasHechas extends JDialog implements ActionListener{
	public  JLabel info;
	public JList tareasHechas;
	public String TAREAS[]={"tarea1","tarea2","tarea3","tarea4","tarea5","tarea6"};
	
	
	public VentanaTareasHechas (){
		
	    setLayout(null);
        setTitle("M. P.- Tareas Hechas");
        getContentPane().setBackground( Color.white);
        setSize(200,300);
        setResizable(false);
        this.setLocationRelativeTo(null);
        setModalityType(DEFAULT_MODALITY_TYPE);
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		       
        //Tareas
        tareasHechas = new JList(TAREAS);
        tareasHechas.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);           
        info= new JLabel("TAREAS HECHAS");
       
        add(info);
        info.setBounds(50, 10, 300, 30);
	    add(tareasHechas);
	    tareasHechas.setBounds(40, 50, 110, 200);
	    
	    
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
	}


}